﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Mads.CoreDomain
{
  [DataContract]
  public class FreeTicket
  {
    [DataMember]
    public uint ID { get; private set; }
    [DataMember]
    public uint RouteNumber { get; private set; }
    [DataMember]
    public DateTime DepartureTime { get; private set; }
    [DataMember]
    public DateTime ArrivalTime { get; private set; }
    [DataMember]
    public uint CarNumber { get; private set; }
    [DataMember]
    public uint SitNumber { get; private set; }
    [DataMember]
    public float Price { get; set; }
    [DataMember]
    public CarType Type { get; private set; }
    public FreeTicket(uint id, uint number, DateTime departureTime,
      DateTime arrivalTime, CarType type, float price, uint car, uint seat)
    {
      ID = id;
      RouteNumber = number;
      DepartureTime = departureTime;
      ArrivalTime = arrivalTime;
      Price = price;
      Type = type;
      CarNumber = car;
      SitNumber = seat;
    }
  }
    [DataContract]
    public class TicketToReturn
    {
      [DataMember]
    public uint ID { get; private set; }
    [DataMember]
    public uint RouteNumber { get; private set; }
    //[DataMember]
    //public DateTime DepartureTime { get; private set; }
    [DataMember]
    public uint CarNumber { get; private set; }
    [DataMember]
    public uint SitNumber { get; private set; }
    public TicketToReturn(uint id, uint number, //DateTime departureTime, 
      uint car, uint seat)
    {
      ID = id;
      RouteNumber = number;
      //DepartureTime = departureTime;
      CarNumber = car;
      SitNumber = seat;
    }
    
    
  }
}